@import '~@/assets/stylesheet/common.less';
.modal-wrap {
  font-size: 14px;

  :global {
    .ant-modal-close-x {
      height: 40px;
      width: 40px;
      line-height: 40px;
    }
    .ant-modal-header {
      .ant-modal-title {
        color: #00a0e9;
        font-size: 14px;
        font-weight: initial;
      }
      border-bottom: none;
      padding: 18px 24px;
    }
    .ant-modal-footer {
      text-align: center;
      border-top: none;
      padding: 20px 16px;
      .ant-btn {
        border-radius: 4px;
        background-color: #e1e1e1;
        border-color: #e1e1e1;
        padding: 4px 36px;
        color: #666;
      }
      .ant-btn-primary {
        color: #fff;
        background-color: #00a0e9;
        border-color: #00a0e9;
      }
    }
    .ant-modal-body {
      padding-bottom: 20px;
      padding-top: 0px;
    }
  }
}
.container {
  min-height: 600px;
  .alarm-wrap {
    .alarm-title {
      line-height: 44px;
      color: #00a0e9;
      font-weight: 500;
    }
    .delete {
      border: 1px solid #fff;
      background-color: #fff;
      box-shadow: 0 1px 4px rgba(0, 21, 41, 0.12);
      color: rgba(0, 0, 0, 0.65);
      border-radius: 4px;
      &:hover {
        color: #fff;
        border-color: #00a0e9;
        background-color: #00a0e9;
      }
      &[disabled] {
        color: rgba(0, 0, 0, 0.25);
        background-color: #f5f5f5;
        border-color: #d9d9d9;
      }
    }
  }
}
.dev-monitor-wrap {
  .display_flex();
  height: 400px;

  .sub-dev {
    box-shadow: inset 0 0px 4px rgba(0, 21, 41, 0.12);
    border-radius: 4px;
    height: 100%;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    width: 24%;
    flex: 0 0 auto;
    .sub-dev-list-wrap {
      overflow-y: auto;
      padding: 0 20px;
      flex: auto;
      min-height: 0;
      height: 100%;
    }
    .sub-dev-list {
      padding: 0;
      margin: 0;
      .sub-dev-item {
        margin-bottom: 6px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        width: 100%;
        line-height: 32px;
        padding-left: 14px;
        font-size: 13px;
        background-color: #fff;
        border-radius: 4px;
        box-shadow: 0 1px 4px rgba(0, 21, 41, 0.12);
        cursor: pointer;
        position: relative;
        &.selected {
          &::before {
            position: absolute;
            left: 0;
            top: 4px;
            width: 0;
            height: 32px;
            border: 4px solid transparent;
            border-left: 4px solid #16ba3c;
            content: '';
          }
        }
      }
    }
    .sub-dev-name {
      padding: 0 20px;
      height: 40px;
      line-height: 40px;
      color: #00a0e9;
      font-weight: 500;
    }
  }
  .sp {
    height: 100%;
    position: relative;
    flex: auto;
    padding-left: 20px;
    .refresh {
      position: absolute;
      left: 20px;
      left: 20px;
      top: -43px;
      border: 1px solid #fff;
      background-color: #fff;
      box-shadow: 0 1px 4px rgba(0, 21, 41, 0.12);
      color: rgba(0, 0, 0, 0.65);
      border-radius: 4px;
      &:hover {
        color: #fff;
        border-color: #00a0e9;
        background-color: #00a0e9;
      }
    }
  }
}
.remote-setting,
.remote-control {
  &:hover {
    color: #fff;
    background-color: #00a0e9;
  }
  :global {
    .anticon {
      font-size: 16px !important;
    }
  }
}

.alarm-height {
  height: 270px;
  :global {
    .ant-table-placeholder {
      height: 224px;
    }
  }
}
.sp-height {
  height: 400px;
  :global {
    .ant-table-placeholder {
      height: 356px;
    }
  }
}
.table-wrap {
  :global {
    .ant-table thead th.ant-table-column-has-sorters:hover {
      background-color: #18d043;
    }
    td.ant-table-column-sort {
      background: transparent;
    }
    .ant-table-filter-trigger-container:hover {
      background-color: #18d043;
    }
    .ant-table-filter-trigger-container-open,
    .ant-table-filter-trigger-container:hover,
    thead th.ant-table-column-has-sorters:hover .ant-table-filter-trigger-container:hover {
      background-color: #18d043;
    }
    .ant-table-filter-trigger {
      color: #fff;
    }
    .ant-table-header {
      table {
        table-layout: inherit !important;
      }
    }
    .ant-table-column-sorter-up.active,
    .ant-table-column-sorter-down.active {
      color: #ffb76c;
    }
    .ant-table-column-sorter {
      color: #fff;
    }
    .ant-table thead > tr > th {
      background: #16ba3c;
      color: #fff;
    }
    .ant-table {
      border: 1px solid #e1e1e1;
      border-top: none;
    }
    .ant-table tbody > tr > td {
      border-bottom: 1px solid #e1e1e1;
    }
    .ant-table tbody > tr {
      &:last-child {
        td {
          border-bottom: none;
        }
      }
    }
    .ant-table tbody > tr {
      &:nth-child(2n) {
        background-color: #f8f8f8;
      }
      &:hover {
        td {
          background: transparent;
        }
      }
    }

    .ant-table thead > tr > th,
    .ant-table tbody > tr > td {
      padding: 6px 2px;
      font-size: 13px;
    }
  }
}
